<template>
  <div>
    <span v-if="format"> {{ timestamp | dayjs}}</span>
    <span v-else> {{ timestamp }}</span>
  </div>
</template>

<script>
  export default {
    name: "TimestampFormatter",
    props: {
      format: {
        default: true
      },
      timestamp: {
        default: 0
      }
    },
    data() {
      return {}
    },
    created() {
    },
    computed: {
    },
    methods: {
    }
  }
</script>

<style scoped>
</style>